package org.ManagerSystem.entity;

import java.util.List;

/**
 *部门信息实体类
 */
public class Department {

    //部门id
    private long did;
    //部门名称
    private String dname;
    //部门描述
    private String ddesc;
    //根据部门查询部门所属员工时用
    private List<Employee> list;

    public Department(){}


    public long getDid() {
        return did;
    }

    public void setDid(long did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDdesc() {
        return ddesc;
    }

    public void setDdesc(String ddesc) {
        this.ddesc = ddesc;
    }

    public List<Employee> getList() {
        return list;
    }

    public void setList(List<Employee> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Department{" +
                "did=" + did +
                ", dname='" + dname + '\'' +
                ", ddesc='" + ddesc + '\'' +
                ", list=" + list +
                '}';
    }
}
